<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>伪类选择器</title>
    <style>
        /* 超链接悬停选择器 */
        a:hover {
            color: chocolate;
            font-weight: 600;
        }

        .box:hover {
            color: green;
        }
    </style>
</head>
<body>
    <a href="#">超链接</a>
    <div class="box">div 标签</div>
</body>
</html>